package com.coolbi.security.biz.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.coolbi.security.biz.UserGroupBiz;
import com.coolbi.security.dao.UserGroupDao;
import com.coolbi.security.entity.UserGroup;

public class UserGroupBizImpl implements UserGroupBiz {
	
	@Autowired
	UserGroupDao userGroupDao;
	public void setUserGroupDao(UserGroupDao userGroupDao) {
		this.userGroupDao = userGroupDao;
	}
	
	@Override
	public List<UserGroup> find(Map<String, Object> parameter) {
		return userGroupDao.find(parameter);
	}

	@Override
	public List<UserGroup> find(Map<String, Object> parameter, int offset,
			int limit) {
		return userGroupDao.find(parameter,offset,limit);
	}

	@Override
	public int count(Map<String, Object> parameter) {
		return userGroupDao.count();
	}

	@Override
	public int countByKeyword(String keyword) {
		return userGroupDao.countByKeyword(keyword);
	}

	@Override
	public List<UserGroup> search(String keyword, int offset, int limit) {
		return userGroupDao.search(keyword, offset, limit);
	}

	@Override
	public UserGroup save(UserGroup obj) {
		return userGroupDao.save(obj);
	}

	@Override
	public int update(UserGroup obj) {
		return userGroupDao.update(obj);
	}

	@Override
	public int delete(long id) {
		return userGroupDao.delete(id);
	}

	@Override
	public UserGroup get(long id) {
		return userGroupDao.get(id);
	}

	@Override
	public List<UserGroup> list() {
		return userGroupDao.list();
	}

	@Override
	public List<UserGroup> list(int offset, int limit) {
		return userGroupDao.list(offset, limit);
	}

	@Override
	public int count() {
		return userGroupDao.count();
	}
}
